﻿@model IEnumerable<Icoders.MarketTracker.Core.MasterData.Area>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>


<div class="button-link">
    @Html.ActionLink("Create New", "Create")
</div>
<table  id="data-grid">
    <tr>
     <th></th>
        <th>
            Name
        </th>
        <th>
            CityName
        </th>
        <th>
            CreatedOn
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) | 
            @Html.ActionLink("Details", "Details", new { id = item.Id }) |
            @Html.ActionLink("Delete", "delete", new { id = item.Id }, new { onclick="return confirm('Are you sure your to delete')"}) 
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CityName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreatedOn)
        </td>
    </tr>
}

</table>
